﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Views.ViewDataSourceConfigure"
	>

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<RadioButton Content="Utiliser un fichier unique" Margin="0,0,0,4" IsChecked="{Binding Path=IsFichierUnique}" />
		<RadioButton x:Name="manyfileRbt"  Grid.Row="1" Margin="0,4,0,0">
			<Grid>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto"/>
					<RowDefinition />
				</Grid.RowDefinitions>
				<TextBlock Text="Utiliser plusieurs fichiers"  />
				<Grid Grid.Row="1" Margin="5,2,0,0">
					<Grid.RowDefinitions>
						<RowDefinition />
					    <RowDefinition />
					    <RowDefinition />
					    <RowDefinition />
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions >
						<ColumnDefinition Width="Auto" />
						<ColumnDefinition MinWidth="100" />
					</Grid.ColumnDefinitions>
					<Grid.Visibility>
						<Binding ElementName="manyfileRbt" Path="IsChecked">
							<Binding.Converter>
								<BooleanToVisibilityConverter />
							</Binding.Converter>
						</Binding>
					</Grid.Visibility>
					<TextBlock Grid.Row="0" Text="Repertoire" />
					<Grid Grid.Column="1">
						<Grid.ColumnDefinitions>
							<ColumnDefinition />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>
						<TextBlock  Text="{Binding Path=Folder}" />
						<Button Grid.Column="1" Content="Load" Click="Button_Click" />
					</Grid>
					<TextBlock  Text="Format des noms des bases" Grid.Row="1" />
					<Grid Grid.Column="1" Grid.Row="1"><TextBox Text="{Binding Path=FileFormat}" /></Grid> 
					<TextBlock Text="Nom du parametre Banque" Grid.Row="2" />
					<Grid Grid.Column="1" Grid.Row="2"><TextBox Text="{Binding Path=BankName}" /></Grid>
					<TextBlock Text="Nom du parametre date encours" Grid.Row="3" />
					<Grid Grid.Column="1" Grid.Row="3"><TextBox Text="{Binding Path=EncoursDate}" /></Grid>
				</Grid>
			</Grid>
		</RadioButton>
	</Grid>
</UserControl>